A. TRANSACTION_READ_UNCOMMITTED
B. TRANSACTION_SERIALIZABLE
C. Only A
D. Both A and B
Advertisement
Related Mcqs:
- How many transaction isolation levels are defined in java.sql.Connection interface ?
- A. 6 B. 2 C. 5 D. 3...
- What is the output for the below code ? public class Test{public static void main(String[] args){int i = 010; int j = 07;System.out.println(i); System.out.println(j); } } ?
- A. 7 8 B. 8 7 C. 9 8 D. None...
- Which of the following automatic type conversion will be possible ?
- A. byte to int B. short to int C. long to int D. int to long...
- Suppose a class has public visibility. In this class we define a protected method. Which of the following statements is correct ?
- A. From within protected methods you do not have access to public methods. B. This method is only accessible from inside the class itself and from inside all subclasses. C. In a class, you cannot declare methods with a lower visibility than the visibility of the class in which it is defined. D. This method...
- A method within a class is only accessible by classes that are defined within the same package as the class of the method. Which one of the following is used to enforce such restriction ?
- A. Declare the method with the keyword public. B. Declare the method with the keyword private. C. Do not declare the method with any accessibility modifiers. D. Declare the method with the keyword public and private....
- Which among following classes is not part of Java’s collection framework ?
- A. Stack B. Maps C. Queue D. Array...
- What will be output of following program? public class Test{public static void main(String[] args){byte b=127; b++; b++; System.out.println(b); } } ?
- A. 127 B. -127 C. 129 D. -129...
- The following program: public class Test{ static boolean is OK; public static void main(String args[]){System.out.print(is OK); } } ?
- A. Prints true B. Prints false C. Will not compile as boolean is not initialized D. Will not compile as boolean can never be static...
- Which of the following statements about arrays is syntactically wrong ?
- A. arrayName[] p = new arrayName[5]; B. arrayName p[][] = new arrayName[2][]; C. arrayName[] p []; D. arrayName p[5];...
- What will the output of the following program? public class Test{ public static void main(String args[]){float f = (1 / 4) * 10; int i = Math.round(f); System.out.println(i); } } ?
- A. 0 B. 1 C. 2 D. 3...
Advertisement